import request from '@/utils/request';

//订单图表
export function orderChartApi(data){
    return request({
        url:'/admin/platform/ServiceHome/order_chart',
        method:'get',
        params:data
    })
}

//实时数据
export function timeStatisticApi(){
    return request({
        url:'/admin/platform/ServiceHome/time_statistic',
        method:'get',
    })
}

//额外数据 如：入驻申请、其他数据
export function extraStatisticApi(params){
    return request({
        url:'/admin/platform/ServiceHome/extra_statistic',
        method:'get',
        params
    })
}

//订单数据
export function orderStatisticApi(){
    return request({
        url:'/admin/platform/ServiceHome/order_statistic',
        method:'get',
    })
}

export function getSiteName(){
    return request({
        url:'/admin/platform/system/config/site_name',
        method:'get'
    })
}